import { get } from '@/utils/request';

/**
 * 审计日志相关API
 */

export interface GetAuditLogsParams {
  page?: number;
  pageSize?: number;
  action?: string;
  resource?: string;
  userId?: string;
}

export const getAuditLogs = (params?: GetAuditLogsParams) => {
  return get<any>('/audit-logs', params as any);
};

export const getAuditLogById = (id: string) => {
  return get<any>(`/audit-logs/${id}`);
};

